package com.sansi.pencilbook.service;

import com.sansi.pencilbook.DO.Result;
import com.sansi.pencilbook.entity.StoreBook;

import java.io.File;
import java.util.List;

/**
 * 功能说明: 书店的书籍服务接口
 *
 * @author lsy13
 */
public interface StoreBookServer {

    public Result getAllStoreBooks();

    //获得某个书店的书籍
    public Result getStoreBooksByStore(int storeId);

    //获得某本书的所有书店书籍
    public Result getStoreBookByIsbn(String isbn);

    //获得某个店铺的某本书籍
    public Result getStoreBookByStoreAndIsbn(int storeId, String isbn);

    //添加书店的书籍
    public Result addStoreBook(StoreBook storeBook);

    //添加书店的书籍
    public Result addStoreBookByExcel(File xlsFile, int storeId);

    //更改书籍
    public Result modifyStoreBook(StoreBook storeBook);

    //更改书籍
    public Result modifyStoreBooks(List<StoreBook> storeBooks);

    public Result modifyStoreBooksByExcel(File xlsFile, int storeId);

    public Result modifyStoreBooksPriceByExcel(File xlsFile, int storeId);

    public Result deleteStoreBook(StoreBook storeBook);

    public Result modifyCountAndPrice(File xlsFile, int storeId);
}
